Component({
  properties: {
    submitText: { type: String, value: "保存" },
    cancelText: { type: String, value: "取消" },
  },

  methods: {
    onSubmit() {
      this.triggerEvent("submit");
    },
    onCancel() {
      this.triggerEvent("cancel");
    },
  },
});
